<?php

namespace humhub\modules\api\models;

use Yii;
use humhub\components\ActiveRecord;

class Group extends ActiveRecord
{

    /**
     * @return string the associated database table name
     */
    public static function tableName()
    {
        return 'ry_group';
    }

    public function rules()
    {
        return [
            [['name'], 'required', 'message'=>'群组名称不能为空'],
            [['name'], 'string', 'max' => 32],
        ];
    }
}
